package com.hnkywl.sts.action.cggl;

import com.hnkywl.sts.service.cggl.GlfyService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import java.text.ParseException;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: 灵韵
 * Date: 13-9-20
 * Time: 下午4:14
 * To change this template use File | Settings | File Templates.
 */
@Namespace("/cggl/glfy")
public class GlfyAction extends SimpleActionSupport {

    private String djh;

    private String ywlx;

    private Long fylbId;

    private Long sydwId;

    private String jszt;

    private Long cgdwId;

    private Date zdsjStart;

    private Date zdsjEnd;

    //页面当前位置
    private int page;
    //每页行数
    private int rows;

    private GlfyService glfyService;

    @Action("glfylist")
    public void glfylist() throws ParseException {
        this.renderJson(this.glfyService.findAllGlfyList(djh,ywlx,fylbId,sydwId,jszt,cgdwId,zdsjStart,zdsjEnd,page, rows));
    }

    public String getDjh() {
        return djh;
    }

    public void setDjh(String djh) {
        this.djh = djh;
    }

    public String getYwlx() {
        return ywlx;
    }

    public void setYwlx(String ywlx) {
        this.ywlx = ywlx;
    }

    public Long getFylbId() {
        return fylbId;
    }

    public void setFylbId(Long fylbId) {
        this.fylbId = fylbId;
    }

    public Long getSydwId() {
        return sydwId;
    }

    public void setSydwId(Long sydwId) {
        this.sydwId = sydwId;
    }

    public String getJszt() {
        return jszt;
    }

    public void setJszt(String jszt) {
        this.jszt = jszt;
    }

    public Long getCgdwId() {
        return cgdwId;
    }

    public void setCgdwId(Long cgdwId) {
        this.cgdwId = cgdwId;
    }

    public Date getZdsjStart() {
        return zdsjStart;
    }

    public void setZdsjStart(Date zdsjStart) {
        this.zdsjStart = zdsjStart;
    }

    public Date getZdsjEnd() {
        return zdsjEnd;
    }

    public void setZdsjEnd(Date zdsjEnd) {
        this.zdsjEnd = zdsjEnd;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    @Autowired
    public void setGlfyService(GlfyService glfyService) {
        this.glfyService = glfyService;
    }
}
